﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Glorysoft.EAP.Core.Entities.Socket
{
    /// <summary>
    /// 设备启动上报实体
    /// </summary>
    public class RequestSetAlarm
    {
        /// <summary>
        /// 实例化请求实体
        /// </summary>
        public SetAlarmRequest Request { get; set; }
        /// <summary>
        /// 默认构造函数
        /// </summary>
        public RequestSetAlarm()
        {
            Request = new SetAlarmRequest();
            Request.Header = new RequestHeader();
            Request.Body = new SetAlarmRequestBody();
        }
    }
    /// <summary>
    /// 设备启动请求实体类
    /// </summary>
    public class SetAlarmRequest : RequestBase
    {
        /// <summary>
        /// 请求Body
        /// </summary>
        public SetAlarmRequestBody Body { get; set; }

    }

    /// <summary>
    /// SetAlarm请求的Body属性
    /// </summary>
    public class SetAlarmRequestBody
    {
        /// <summary>
        /// 设备ID
        /// </summary>
        public string EqpID { get; set; }
        /// <summary>
        /// 报警ID
        /// </summary>
        public string AlarmID { get; set; }
        /// <summary>
        /// 报警代码
        /// </summary>
        public string AlarmCode { get; set; }
        /// <summary>
        /// 报警消息
        /// </summary>
        public string AlarmMessage { get; set; }
    }
}
